package yf.mall.service;

import yf.mall.entity.QuestionEntity;
import yf.mall.vo.QuestionVo;
import com.yf.service.BaseService;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * 问题表Service接口
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Tue Dec 15 13:15:22 CST 2020
 */
public interface QuestionService extends BaseService<QuestionEntity> {

    /************自动生成**************/
    List<QuestionVo> findVo(QuestionVo vo);

        QuestionVo getVo(Long id);

     int updateVo(QuestionVo vo);

       int saveVo(QuestionVo vo);

    void downLoad(HttpServletResponse response, List<QuestionVo> list);

    /***********BACK***********/




    /***********API***********/
    List<QuestionEntity> queryByGoodsId(Long goodsId,Integer status);

    Integer totalQuestion(Long goodsId);

    QuestionEntity apiSave(Long userId, Long goodsId, String content);

    List<QuestionEntity> myQuiz(Long userId, Integer temp);

    void del(Long[] ids);
}
